import scrapy


class GithubSpider(scrapy.Spider):
    name = 'github'
    allowed_domains = ['github.com']
    # 直接对验证的url地址发送请求
    start_urls = ['https://github.com/ZuoAndroid']

    def parse(self, response):
        with open("github.html", "wb") as f:
            f.write(response.body)
